package com.ehome.poct.core.api.feign;

import com.ehome.core.page.PageInfo;
import com.ehome.poct.core.api.dto.CheckStripQry;
import com.ehome.poct.core.api.dto.check.TestStripPriceUpdateDTO;
import com.ehome.poct.core.api.dto.check.gold.TestStripPriceVO;
import com.ehome.poct.core.api.vo.check.PoctTypeVO;
import io.swagger.annotations.ApiParam;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

import java.util.List;

@FeignClient(value = "${service.poct-core:}${service.suffix.poct-core:}",contextId = "checkStripFeign")
public interface CheckStripClient {

    @GetMapping("/jcstripinfo/checkInfo/{type}")
    List<PoctTypeVO> jbyCheckInfo(@PathVariable @ApiParam("0：所有检测类型；1：金标仪检测类型；2：血常规检测类型；3：联机检测类型") Integer type);
    @PostMapping("/jcstripinfo/checkprice")
    PageInfo<TestStripPriceVO> getList(@RequestBody CheckStripQry qry);
    @PutMapping("/jcstripinfo/disable/{conftypeid}")
    Boolean disablePrice(@PathVariable Long conftypeid);
    @PostMapping("/jcstripinfo/modify")
    boolean updatePrice(@RequestBody TestStripPriceUpdateDTO vo);
}
